package com.lmaos.basetools.base;

import java.util.ArrayList;
/**
 * 
 * @author lmaos
 *
 * <p>作者：张星宇</p>
 * <p>时间：2017年6月1日 下午10:59:55</p>
 * <p>说明:参数集合		</p>
 *
 */
public class SParamArrayList extends ArrayList<Object>{

	private static final long serialVersionUID = 1L;
	
	
	public byte getByte(int index){
		Object obj = super.get(index);
		return SNumberUtils.toByte(obj);
	}
	public short getShort(int index){
		Object obj = super.get(index);
		return SNumberUtils.toShort(obj);
	}
	public int getInt(int index){
		Object obj = super.get(index);
		return SNumberUtils.toInt(obj);
	}
	public long getLong(int index){
		Object obj = super.get(index);
		return SNumberUtils.toLong(obj);
	}
	public float getFloat(int index){
		Object obj = super.get(index);
		return SNumberUtils.toFloat(obj);
	}
	public double getDouble(int index){
		Object obj = super.get(index);
		return SNumberUtils.toDouble(obj);
	}
	public boolean getBoolean(int index){
		Object obj = super.get(index);
		return SNumberUtils.toBoolean(obj);
	}
	public String getString(int index){
		Object obj = super.get(index);
		return String.valueOf(obj);
	}

}
